Former US vice-presidential candidate Sarah Palin is to formally leave office as Alaska’s governor, 18 months early.