Japanese chip manufacturers — once global leaders — have struggled in recent years in the face of fierce competition from South Korean and Taiwanese rivals.