By ESTHER FUNG SHANGHAI—UBS AG, a district government in Shanghai, and an insurance company are starting a public-housing investment fund that could use public-private financing to help China build more low-cost homes. The fund will invest in completed, rental residential properties for low-income families in the Hongkou district of Shanghai. It will later become a real-estate investment trust…