Uncertainty over Britain's looming departure from the EU will dampen near-term economic growth for the UK and the rest of Europe, the IMF said.