The topology of contact Riemannian manifolds