Study finds link between exercise and mental health