A US security guarantee is the only way to prevent Russia from attacking Ukraine again, Sir Keir Starmer said.