Spanish state prosecutors have shelved an investigation into sexual assault accusations against Julio Iglesias.