Leaders should weigh the advantages and challenges of remote work before requiring their employees to return to the office five days a week.