In order to corroborate the testimony of a witness, any former statement made by such witness relating to the same fact, at about the time when the fact took place, or before any authority legally competent to investigate the fact, may be proved.