Mortgage lenders lost hundreds of dollars on average for each loan they originated last year while soaring interest rate