In the year after people moved from less green to greener urban spaces, they experienced a significant boost in mental health markers such as mood and confidence. Allie Wilkinson reports