The IT company behind some of the world's most popular office software apologised for the disruption that impacted critical services in dozens of countries.