Exchange rings and decompositions of modules