The SNP will overhaul Scotland’s childcare system to provide afterschool and childminder provision from nine months to 12 years, if the party wins the Holyrood election.