Sir Keir Starmer has said he was "heavily focused" on world affairs before he was forced to U-turn on his welfare bill after rebellion by MPs.