Rising food costs and shifting consumer habits have hit these fast-food chains hard, leading to declining sales, closures, and financial trouble.