Search for the decay D^{0}→γγ and measurement of the branching fraction for D^{0}→π^{0}π^{0}