A Ryanair flight declared a mid-air emergency moments before landing in the UK, flight data suggest.