Average five-year mortgage rates have topped 6% for the first time in three years, as lenders continue to hike prices on inflation concerns.