Mortgage rates reached nearly a three-year high, causing refinancing and homebuying demand to decline further.