Long-term U.S. mortgage rates rose slightly this week, reversing a decline in the prior week.