The UK government has drawn up plans aimed at slashing the levels of migration from the European Union immediately after Brexit, document obtained by the Guardian.