The FBI opens a terrorism inquiry into an attack in California, one of three mass shootings in the US in a fortnight.