Collective behavior of viscoelastic asperities as a model for static and kinetic friction