how to prevent hair loss when fasting