Collective risk models with dependence