The UK’s cybersecurity chief has warned of a widening gap between cyber threats and the UK and its allies’ ability to defend against them as he called for greater collective action.