US discounter Dollar General has reported "record" annual sales, operating profit and net income, despite a "challenging" macroeconomic environment.