Theresa May has told MPs she wants EU citizens living in UK to stay here as she set out their rights after Brexit.