Wales’ first minister is trying to reassert Welsh Labour’s distinct identity as the party slips in the polls.