A multiscale model of distributed fracture and permeability in solids in all-round compression