how environmental factors affect mental health