Early events in the thymus affect the balance of effector and regulatory T cells