Structure and shear in a cohesive powder