what environmental factors affect mental health