Ground states for a system of nonlinear Schrödinger equations with three waves interaction