what causes scalp sores and hair loss