May vows to hold nerve after Brexit talks hit impasse