Text this: Modelling the impact of environmental and social determinants on mental health using generative agents