Edinburgh University found the drugs may also affect the fertility of future generations, by leaving marks on DNA.