Gardens help towns and cities beat countryside for tree cover