Large parts of Britain were hit by a power cut on Friday evening, affecting trains, knocking out traffic lights and disrupting an airport.