A discrepancy principle for parameter selection in local regularization of linear volterra inverse problems