Correlations between periodic orbits and their rôle in spectral statistics