James Lovelock concedes: ‘A lot of investment in green technology has been a giant scam, if well intentioned’