While some companies are tightening mandates on working from home, more are moving to flexible models