The boss of Britain's biggest banking lobby has quit after "inappropriate" comments he made as a Barclays PLC banker are poised to come to light during a £1.6 billion ($2 billion) trial at the High Court over claims brought by financier Amanda Staveley.