Mortgage rates moved sharply higher last week, causing a drop in mortgage demand and a surge in homebuyers seeking riskier loans.