Improving and maintaining woodlands in deprived communities is linked with reduced antidepressant and anti-anxiety medication use, research suggests.