Nya Zeeland är i teknisk recession, efter att ha redovisat det andra kvartalet i rad där ekonomin backat.