Women taking pill more likely to be treated for depression, study finds