A Convex Formulation of Compliant Contact between Filaments and Rigid Bodies