Northampton progress in the Anglo-Welsh Cup as they beat Newport Gwent Dragons 16-34 in dreadful conditions.