Theresa May has called on the United Nations to reform as she singled out North Korea, Russia, Syria and Myanmar for criticism in a wide-ranging speech.