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