Turkey has withdrawn a controversial bill which would have pardoned men convicted of child rape, if they married the victim.