Mauritania parties agree on dialogue plan