what causes hair loss and dandruff