British expatriates would have been left “high and dry” by European leaders if the UK had “given away” a guarantee that EU migrants can continue to stay in the country post-Brexit, Theresa May has said.