The dollar rose ahead of nonfarm payrolls data that could provide hints on the timing of the Federal Reserve’s next interest-rate cut.