State of emergency in New Zealand as storms hit