Japan records a trade deficit in August as exports to China, rest of Asia weaken