County failed repeatedly to stop sexual abuse of foster children, lawsuit alleges