Tens of millions of Americans will swelter through the hottest weather of the summer over the next few days as a record-breaking heat wave builds.