Reduced-basis method for the iterative solution of parametrized symmetric positive-definite linear systems