Effect of transverse compressive stress on the critical current and upper critical field of Nb3Sn