A fire at a block of flats in Leith which saw residents leave their homes in the middle of the night, was started deliberately, police believe.