Theresa May tells UN the UK will not turn inwards after Brexit vote