Jes Staley is leaving the bank following a watchdog investigation into his links to the sex offender.