Oil prices ease after hitting 10-month highs as investors take profits