Some 500 families have been left homeless in Peru after a devastating fire in a shanty town in the Rimac district of the capital Lima, local media report.