Theresa May has stressed Brexit is now a matter for her successor as she arrived at a European Union summit in Brussels.