US mortgage rates climbed for a sixth straight week to an almost three-year high, thwarting would-be homebuyers.