Frictional intermediation in over-the-counter markets