how to prevent hair loss early