Mechanisms governing onset of sliding friction