Cosmic rays and the magnetic field in the nearby starburst galaxy NGC 253. I. : The distribution and transport of cosmic rays