Archaeologists have unearthed a 1,200-year-old hoard of gold, silver and gemstones that was buried along a medieval pilgrimage route in Saudi Arabia.