With a goal of reshaping its footprint as a “totally class A portfolio,” Mack-Cali Realty Corp. has sold more than 35 of its office buildings since the start of 2016, the company said, reaping more than $700 million from properties that it deemed nonstrategic or underperforming.