Riemannian Foliations and the Topology of Lorentzian Manifolds