Even though no two objects touch each other at atomic level because of weak repulsion between nucleus - nucleus and electron electron repulsion; those two objects also attract each other due to nucleus - electron attraction.
The repulsion only come into picture when the object surfaces come too close to each other. However, the attraction is stronger force and starts acting even before the two surfaces come close enough for repulsion to come into play.
Such attraction is one of the causes of friction.
Irregularities at molecular level in the surfaces in contact also causes interlocking, which is a major cause of friction.
Derivation -