Japanese car-maker Nissan will build its new model in Britain despite the Brexit vote.