Bayer, Germany's largest drugmaker, said it had contained a cyber attack on its computer networks it believes was hatched in China, highlighting the risk to big business of data theft and disruption.