Republicans and Democrats are in a tight race for control of the US Congress, as counting continues following the midterm elections.