Search for long-lived particles using delayed photons in proton-proton collisions at 13 TeV with the CMS Detector