Japan posted a record trade deficit in August as costs for imports of oil and gas soared, the government reported Thursd