Hundreds left homeless after fire