The Princess of Wales opened the family-friendly residential centre for women going through the justice system