Britain's departure from the European Union may still not happen, one of the EU's top officials has suggested.