San Francisco real estate firm Ellis Partners has teamed up with Boston-based hedge fund Baupost Group to buy a three-building office complex in the heart of Silicon Valley, as local investors and tech companies continue prop up the Bay Area’s office market in the absence of institutional investors.