Kazakhstan's president elected head of ruling party