Prime filtrations and primary decompositions of modules