The role of the scalar curvature in some singularly perturbed coupled elliptic systems on Riemannian manifolds