Influence of phonons on exciton-photon interaction and photon statistics of a quantum dot