New Zealand Prime Minister Jacinda Ardern resigns ahead of election