Upper limit for the decay B0 to tau anti-neutrino tau and measurement of the B to tau anti-neutrino tau X branching ratio