S-matrix singularities and CFT correlation functions