MHD simulation of the three-dimensional structure of the heliospheric current sheet