Up to 145 pilot whales have died in a mass stranding on a remote part of a small New Zealand island, authorities say.