Optimal Gaussian squeezed states for atom interferometry in the presence of phase diffusion