Alibaba Group plans to invest more than $52 billion on AI and cloud infrastructure over the next three years, in a bid to seize more opportunities in the artificial-intelligence era.