Commutative rings whose maximal ideals are direct sums of completely cyclic modules