A boat carrying 1,200 survivors of a deadly attack by Islamic State-linked insurgents in northern Mozambique reached safety in the port of Pemba on Thursday, some of them crying on arrival after spending days hiding in the bush.