The mayor of the Silicon Valley city has proposed arresting people who don’t accept offers of shelter. It’s the latest sign of frustrations over tent encampments in California.