Stick-slip and wear phenomena at the contact interface between an elastic beam and a rigid substrate