Boris Johnson resigns, to stay till new PM chosen