James Cameron’s “Avatar: Fire and Ash” dominated the early-January box office with $40 million in its third weekend.