EU threatens trade war after Brexit talks