Three essays on financial intermediation