The carcass of a humpback whale has been dragged onto a Danish beach after two weeks of the body languishing in shallow waters.