The UK government will seek to attract record levels of investment in renewable energy sources and reform grid connections, King Charles said in his first king's speech at the opening of parliament on Tuesday.