Girl allegedly tortured by mother is released from hospital