Nonlocal teleparallel cosmology