A representation formula for linear Volterra integral equations