Dollar edges down from highs as investors take profits