Tidal evolution of Earth-like planets in the habitable zone of low-mass stars