Effect of coronal mass ejections on the structure of the heliospheric current sheet