Jeremy Corbyn has warned that cyber hacking could damage transport industries, scientific research, the health service and educational services.