Heavy rain is lashing large parts of the nation, including a capital city, with numerous people in danger from flash flooding amid emergency warnings.