The Duke and Duchess of Cambridge and Prince Charles attended a ceremony marking 100 years since the First World War's Battle of Passchendaele in Ypres, Belgium.