Mortgage rates surged to roughly a three-year high, a fresh setback for an already depressed housing market.