Vietnam has unanimously elected Communist Party leader To Lam as president, consolidating his control over both party and state