Freight train derails