Search for new phenomena using three-photon final states in data collected with the ATLAS detector at the Large Hadron Collider