Random waves on the three-dimensional torus and correlations of spherical lattice points