Boris Johnson refused to rule out challenging Theresa May for the Tory leadership as he warned her Brexit deal left the UK open to "blackmail" by Brussels.