Some decomposition properties of injective and pure-injective modules