how does lifestyle affect mental health