Stopping Britain’s exit from the European Union would leave the country fractured even though this would be the best outcome for the economy, the finance minister Philip Hammond said.