Continual Learning of Multiple Cognitive Functions with Brain-inspired Temporal Development Mechanism