The Duchess of Sussex has pulled out of giving a speech with Prince Harry at the event promoting children's online safety.