It is a story playing out across Silicon Valley, where restaurateurs say that staying afloat is a daily battle with rising rents, high local fees and acute labor shortages. And tech behemoths like Apple, Facebook and Google are hiring away their best line cooks, dishwashers and servers with wages, benefits and perks that restaurant owners simply cannot match.