Mechanism of friction and cohesion in clays