Tech companies are spending big money on renewable and alternative sources of energy in an attempt to shore up enough power for energy-hungry data centres.