A technical failure in the UK's air traffic control system caused delays and cancellations at major airports, including Heathrow and Gatwick.