Parallel framings and foliations on pseudoriemannian manifolds