Thermodynamics and fluctuations of conserved charges in a hadron resonance gas model in a finite volume