A study of nearly 1 million young people in New Zealand links mental health to their local environment. Researchers say this can help plan healthier cities and communities.