Major websites including social network X and AI chatbot ChatGPT were disrupted on Tuesday after US online services provider Cloudflare said it had been affected by a "latent bug".