Research sampling thousands of gardens across Australia has found up to a third may have elevated lead levels which make anything grown in them unsafe to eat.