Firms prepped for working from home fared better during the pandemic