Uganda's army has begun its pull-out from neighbouring South Sudan, in line with a peace deal aimed at ending nearly two years of civil war.