US President Donald Trump has called wind and solar the “scam of the century" and accused them of causing record energy cost increases in his latest attack on the sector.