Long-term U.S. mortgage rates rose this week for a second straight week, posting new highs for the year.