France admits Algeria war 'system' led to torture