Shares declined in Europe and Asia on Wednesday as artificial intelligence-related stocks were hit by heavy selling.