Age and gender differences in mental health and addictions of individuals experiencing homelessness in Spain: a 15-year retrospective cohort study