Foxconn Technology Group announced Friday it was buying a six-story office building across the street from Wisconsin’s state Capitol to house an off-campus research center it will run as part of a partnership with the University of Wisconsin-Madison.