Adhesion hysteresis and friction