New Zealand needs to rebuild for weather resilience, PM says