Staff shortages are affecting doctors’ mental health, survey finds