Two possible approaches, one social, one technical:
The social approach is to change a culture so that we make deep friendships for life. Like having a new family, except by choice. Make it normal for friends to buy houses next to each other, so that in future they can help each other take care of kids, cook for each other, and other things family members could do for each other. This could help people live in a commune of their own choice.
(The obvious problem: two people get married, each of them has a different group of friends. In some sense this is a nice problem to have, because it assumes that many people already have communes. Still a problem.)
The technical approach is to make houses like Lego bricks, with standardized dimensions, that can be picked up from one place and placed to another place. To make relocation easier and cheaper than it is now. So again, you have a group of friends, and you agree to live together. Except, if you find new friends, you move to live close to them.
In places where most homes are rented, this is a potential product for a very rich company: make a few buildings in different parts of town, with identically shaped flats (or maybe two or three types of flats of different size, each type existing in each building) and provide a furniture that is easy to disassemble and reassemble. Part of your offer would be the possibility of cheap and simple relocation: if someone chooses a different bulding where a flat of the same type is available, you could disassemble the furniture, move it, and reassemble in the same shape in a week. You could also provide some related services, such as redirecting mail coming to the old address.