The Duke and Duchess of Sussex paid their respects to Australia's war dead in Sydney, before heading to the opening of the Invictus Games.