Chancellor Philip Hammond fired a warning shot at hard-Brexiteers who say no deal with Europe is better than a bad deal.