The Home Office has been accused of having its "head in the sand" over the position of EU citizens living in the UK, after an official said that guaranteeing their right to remain after Brexit would cost the UK "negotiating capital" in withdrawal talks.