Swedish prosecutors said they would drop a preliminary investigation into an allegation of rape against WikiLeaks founder Julian Assange.