Washington Real Estate Investment Trust is selling almost all its office properties as it accelerates its plan to transform itself into a firm that focuses exclusively on multifamily real estate, a sector that's on pace for its biggest rent gains this century.