Sir Keir Starmer is attempting to shore up his position after his party suffered heavy election losses.