£13m will be made available for local authorities to improve their parks and green spaces, Communities Secretary James Brokenshire has announced.