An exodus of young families from Sydney has prompted a warning the capital could become a city with no grandchildren.