The VMC survey – XXXI: The spatially resolved star formation history of the main body of the Small Magellanic Cloud