Jacinda Ardern to resign as New Zealand's prime minister