Sir Keir Starmer said the UK faces a new threat from loners radicalised by viewing extreme violent content online.