US fastfood giant McDonald's has reported a 3.9% rise in global comparable sales in August, the company's 16th consecutive monthly increase.