New research finds a link between the cost of homeowners’ insurance and the racial makeup of a neighborhood.