Higher rates have helped push the average rate on 30-year mortgages above 7% for the first time in years.