Prime Minister Sir Keir Starmer has said the SNP are to blame for the state of Scotland's finances.