The Japanese car giants will merge to create the world’s third-largest automotive group by 2026, as the two companies struggle to keep up with global competitors.