Statistical analysis of corotating interaction regions and their geoeffectiveness during solar cycle 23