Central African Republic reaches deal with armed groups