Archaeologists have fought the tides to save a 17th-century shipwreck from a popular nudist beach in Dorset.