Dollar holds near five-month highs as data supports