factors affecting mental health