Bayesian hierarchical models of trends in prevalence