Labour leader Sir Keir Starmer has said the UK needs a major home insulation programme during a visit to Yorkshire.