'Europe's security is our security': May on post-Brexit treaty with EU