Mortgage rates in the US surged the most in more than three decades, ratcheting up pressure on would-be homebuyers and cooling the housing market.