Search for physics beyond the standard model in high-mass diphoton events from proton-proton collisions at sqrt(s) = 13 TeV