French prosecutor says Nice truck attacker plotted attack for months, had accomplices