Housing affordability and mental health: an analysis of generational change