Tencent Holdings’ revenue growth accelerated in the first quarter as its core gaming business remained strong and ramped-up spending on artificial intelligence began to pay off.