The Duke of Sussex claimed a heated confrontation with the Prince of Wales came to an abrupt end when William used a childhood secret code