Employers need to remain flexible with their back-to-the-office demands or they risk losing employees, HR experts say