On a weakly singular Volterra integral equation