Smaller, newer parties lick wounds after poor showing in local government elections