US dollar weakens sharply against the Japanese yen after officials intervene in markets