Tencent’s third-quarter profit edged up amid soft advertising income and continued weakness in its games business.