Nissan is cutting 20,000 jobs worldwide after becoming the latest car manufacturer to make a loss amid the global slump.