Emily Scarratt has announced her retirement from women's rugby after winning a second Women's Rugby World Cup trophy.