The effect of tidal torques on the structure and evolution of rotating stars