Decay rate of the Green function in a random potential on the Bethe lattice and a criterion for localization