US mortgage rates climbed for a seventh straight week to their highest level in nearly three years, compounding the nation’s affordability problem.