Scotland's top law officer has ordered a fresh investigation into the death of a woman who was abused by her partner.