A continuous-time Ehrenfest model with catastrophes and its jump-diffusion approximation