Ukrainian President Volodymyr Zelenskyy, whose term expired last year, lacks the legitimacy to sign a peace deal, Putin says.