Philip Hammond has warned Conservative leadership candidates they will not be prime minister for long if they pursue a no-deal Brexit, hinting that he and other Tories could be prepared to vote down the government in a confidence motion to prevent that outcome.