The Duke of Cambridge has led official commemorations marking the 100th anniversary of the Battle of Passchendaele.