The German government is considering telling the public to stockpile food and water in case of major disasters or an armed attack, a newspaper says.