The nature of the torus in the heavily obscured AGN Markarian 3: An X-ray study