CT prisons to end in-cell restraint in settlement with civil rights groups