Congo and the M23 rebel group have signed an agreement in Doha to set up a body to monitor an eventual ceasefire.