The effects of mergers on the formation of disc-bulge systems in hierarchical clustering scenarios