UK to hire hundreds of spies to fight terror