MelodyGLM: Multi-task Pre-training for Symbolic Melody Generation