Chinese gaming and social media giant Tencent said second-quarter net profit rose 37%, beating market estimates.