Baidu is considering its first cash dividend in what analysts see as an effort to reassure investors, as China’s Big Tech firms face mounting pressure to prove their massive artificial intelligence investments can pay off.