Charlottesville declares state of emergency