How diet and exercise affect mental health