Chancellor Philip Hammond says the Government was right to spend £4 billion preparing for a no-deal Brexit scenario.