Mainland Chinese investors bought more Hong Kong stocks than they sold for a second consecutive month in July, rotating into the undervalued market to take shelter from the tumult in artificial intelligence-linked shares. Onshore traders purchased a total of HK$62.9 billion (US$8.02 billion) worth of Hong Kong…