Banks are edged out of loan deals by funds, private equity