Segregation and inequality

Increased demand and real estate investment speculation are driving housing prices up. This leads to growing segregation where only the rich can afford to live in city centers forcing low income groups to move to the periphery. How can social housing be a tool to keep cities undivided?