De Sitter universe in nonlocal gravity