UK says it has struck deal to save troubled airline Flybe