Commutative rings in which every ideal is a product of primary ideals