Plans from the SNP to roll out more free childcare have been criticised by the Labour and Conservative parties.