Currencies: Dollar weakens against rivals as investors lock in recent gains