Mystery of Dolphin Strandings

Even though dolphins are highly intelligent, social and have a built in navigation system, they often swim up on to beaches and die there. What's behind the phenomena of mass dolphin strandings?