Mark Carney defended the central bank’s conduct during the U.K.’s debate over its membership of the European Union, challenging accusations that officials strayed into political waters by warning the economy could take a hit if voters choose to leave.