Residential segregation, dividing walls and mental health: a population-based record linkage study