One of the UK’s most senior police officers said the summer riots showed the damage that can be done if online hate is left unchecked.