Nissan has announced a voluntary retirement programme in Japan after reporting a sharp decline in domestic sales.