A study of the three- and four-photon final states produced in e+e− annihilation at 35⩽s⩽46.8 GeV