The outgoing chief executive of the Financial Conduct Authority has praised its staff for "routinely putting themselves in the way of harm for the public they serve".