Booming sales of tablets, smartphones and solid-state drives (SSDs) are taking a toll on hard-disk drive sales, revenue from which is expected to drop by about 12% this year.