Galactic cannibalism and CDM density profiles