Search for new phenomena in high-mass diphoton final states using 37 fb−1of proton–proton collisions collected at s=13 TeV with the ATLAS detector