Prevalence and predictors of potentially inappropriate prescribing in middle-aged adults: a repeated cross-sectional study