US and NATO troops have started to withdraw from Afghanistan, the White House and several alliance officials say, amid a reported surge in Taliban attacks.