Entropy in the cusp and phase transitions for geodesic flows