Ground states for a system of Schrödinger equations with critical exponent