The Latvian parliament has voted to withdraw from the Istanbul Convention, an international treaty supporting women who are victims of violence.