A Markov chain Monte Carlo analysis of the CMSSM