Commutative rings whose finitely generated modules are direct sums of cyclics