Financial frictions and the interbank market