Nodal solutions for a singularly perturbed nonlinear elliptic problem in a Riemannian manifold