Metric perturbations in a cosmological model with gravitational particle production