Stick–slip motion of solids with dry friction subject to random vibrations and an external field