Buyers turn to riskier mortgages as home prices rise