Japanese carmakers Nissan and Honda said on Thursday they had agreed to end discussions on merging their businesses.