At least five people have been hospitalised after a shooting at an annual food festival in northern California.