Britain must leave Europe to regain control of its borders and improve national security, a justice minister is warning, after it emerged that more than 1.6 million migrants moved to the UK from within the EU in nine years.

The figure, released by the UK Statistics Authority, means an average of 500 people every day moved to the country between 2006 and 2014.

During a speech to Vote Leave supporters in London on Wednesday,Dominic Raab will say current EU rules mean UK intelligence agencies are powerless to bar EU nationals believed to be linked to terrorism from entering the UK.

"Crucially, for UK intelligence agencies, we cannot bar individuals on whom we have sketchy intelligence but reason to believe may be linked to terrorist related or other serious criminal activity. Or who may have done something which gives rise to questions, such as visiting Syria, without a clear or credible reason.

"In most countries outside the EU, you can bet that individuals flagged in this way would not waltz through passport control without these doubts or question marks being answered or assuaged."