More than 1,330 flights in and out of Heathrow were cancelled or diverted on Friday after a fire at an electricity sub-station left the airport without power.