The Duke of Sussex has spoken of the “profound impact” the Invictus Games had on him at an event in Canada.