Labour does not rule out backing continued freedom of movement when Britain quits the European Union, says Jeremy Corbyn.