The UK government has announced it would cut subsidies provided to renewable energy projects, hoping to save billions on costs.