Optimal distributed quantum sensing using Gaussian states