The Latvian Parliament has voted to withdraw from a European treaty supporting women who are victims of violence.