Hong Kong’s stock exchange beat market estimates with a 21% rise in second-quarter net income, fueled by robust trading volumes and a jump in initial public offerings.