Five of the 29 passengers on board were injured after the train derailed following an avalanche