Russia has agreed to provide arms and military training to a newly formed joint force between Mali, Niger and Burkina Faso.