Investors are increasingly turning to the mortgage market to fund their home purchases rather than paying all cash.