Mortgage rates rise for first time in nearly two months