Jacinda Ardern resigns as prime minister of New Zealand