Canada has unexpectedly fallen into a technical recession for the first time since 2020.