Retail investors in China shied away from stocks as markets dropped in 2022 and 2023, but they’ve been roused awake this year by Beijing’s efforts to bolster the economy.