Pakistan, Afghanistan agree to step up cooperation in ‘war on terror’