A US jury has ruled YouTube and Instagram were negligent in the design of their apps and the companies that own them failed to warn about their dangers.