Exact solutions and spacetime singularities in nonlocal gravity