US discount retailer Dollar General has cut the top end of its full-year earnings guidance despite booking a rise in first-quarter profit.