May vows to deliver Brexit after MPs quit