Japan posts record trade deficit in 2022