More employers offer flexible hours, but many grapple with how to make it succeed