Global existence of small solutions to semilinear Schro¨dinger equations with gauge invariance