The resonant tidal evolution of the Earth-Moon distance