Global shares have retreated despite the big lift in overseas markets from optimism over artificial intelligence technology.