Tories 'must do better' after losing nearly 500 council seats, says education secretary