MI5 chief – al-Qaida threat diminished, but not yet over