A diet that forbids eating for hours on end might seem doomed in a culture where food is constantly available, but apps and Facebook groups are popping up for people practicing “intermittent fasting.”