Sweden's top prosecutor says she is dropping an investigation into a rape claim against WikiLeaks founder Julian Assange after almost seven years.