A massive programme of development of railway stations and surrounding land will deliver thousands of new homes, the UK government has announced.