Ryanair chief executive Michael O'Leary says the cancellation of hundreds of flights because of a pilot rota error "is a mess".