Pakistan helped al-Qaeda set up shop in Afghanistan: US documents