Photon correlations in multimode waveguides