Analysis has shown that UK businesses were subjected to an average of 230,000 cyber-attacks each in 2016.