Foreign direct investment falls 23pc in July