The amount of foreign-earned profits corporations were shifting to tax havens surged just as the G-20's planned crackdown got underway.