Study of high-p T charged particle suppression in PbPb compared to pp collisions at $\sqrt{s_{\mathrm{NN}}}=2.76~\mathrm{TeV}$