The railway line where two trains collided on Monday will remain closed until the end of the week, operators have said.