how to prevent hair loss while fasting