The outgoing boss of the Financial Conduct Authority has sounded a warning shot to the media and markets, defending the regulator’s independence and right to make “difficult and important decisions” in the interests of end consumers.