Decomposing Gorenstein rings as connected sums