Third post-Newtonian dynamics of compact binaries: equations of motion in the centre-of-mass frame