An empirical test of credit rationing in the mortgage market