Causes of hair damage and how to repair it