US defence chief says Afghanistan withdrawal is 'going according to plan'