Almost 3,000 jobs will go as Nissan, which owns a huge factory in Britain, reacts to falling car sales.