The Mozambican government failed to warn people in the areas worst hit by Cyclone Idai despite a “red alert” being issued two days before it struck, the mayor of the city of Beira has said.