More than 400 whales were stranded on a New Zealand beach, with most of them dying quickly as frustrated volunteers desperately raced to save the survivors.