France says driver plotted Nice attack for months