At least 25 whales have died after a mass beaching, likely due to shallow waters around New Zealand that confuse the whales.