Rolls-Royce posted a record loss of £4.6 billion as a fine to settle bribery charges capped a difficult few years for the aero engine maker.