what are some factors affecting mental health