how to avoid hair damage