Ukraine, rebels agree to pull back troops, weapons