The world’s third biggest economy has fallen into recession for the first time in more than four years.