Foreign firms invested $8.4 billion in the country last month, a decline of 9.5 percent year-on-year but still the largest amount since October, the commerce ministry said.