The Government is to introduce rules to prevent giant data centres from using a disproportionate amount of electricity.