Sweat, tight ponytails, and daily workouts can wreck your edges. Here's the science behind why it happens and how to protect your hairline at the gym.