Method and device for filtering a digital signal with fractional delay