Global trade is set to reach almost $32 trillion this year, but inflation has reversed some of the gains made in recent months.