Theresa May says 'smooth transition' has been agreed with EU