Qualcomm, the world’s largest smartphone chipmaker, warned it is struggling to meet demand, signalling that a global semiconductor shortage is spreading.