Tram was travelling at high speed when it derailed, crashing into the side of a building, smashing a window and then hitting a tree, authorities say