Evolution of hypersurfaces by their curvature in Riemannian manifolds