(Reuters) - Chipmaker Marvell Technology Group Ltd said on Monday it would buy smaller rival Cavium Inc in a deal valued at about $6 billion, as it seeks to gain scale in a semiconductor industry that is rapidly consolidating.