Obama arrives in Afghanistan to sign security pact