Ex-foreign secretary Asad Majeed becomes witness in cipher case