Saudi Arabia's King Salman has ordered a safety review for the Hajj pilgrimage after at least 717 people died in a stampede.