Almost fifty pilot whales have washed ashore on a remote beach in the north of New Zealand's South Island.