Continuum mechanics modeling of adhesion and friction