A numerical investigation of the interplay between cohesive cracking and plasticity in polycrystalline materials