As housing costs soar, the exodus of families from urban centres is a threat to social mobility and cultural vibrancy