Immigrants should not be blamed for Britain's economic difficulties and must stay in the country in the wake of Brexit, Labour leader Jeremy Corbyn has said.