A real estate investment trust has acquired a Branchburg warehouse and office building — the home of a well-known furniture distributor — in a newly announced transaction by GM Realty Advisors Inc.