Landmark study shows how to change the building sector from a major carbon emitter to a major carbon sink