The average interest rate on a 30-year fixed mortgage reached 7.4%, the highest in nearly three years