Government’s use of Facebook, Twitter and Gmail is illegal, former BJP leader argues in court