People were told to avoid unnecessary travel across much of California on Wednesday as an atmospheric river hit the state.