EU posts $5.9B foreign trade deficit in August