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