Why Wendy’s is losing the burger wars—and is now a takeover target for Nelson Peltz