Study of space charge in the ICARUS T600 detector