Mark Zuckerberg says AI is helping the company boost traffic to Facebook and Instagram as it forecast quarterly revenue well above analyst expectations.