Colombia's government and leftist FARC rebels unveiled a peace deal to end a guerrilla war which almost made the country a failed state.