Former MI5 head slams treatment of terror suspects