Gardening helps people cultivate better mental health, according to a new study.