Thousands of passengers have had flights cancelled after broken cables caused IT problems for the airline.