Oil dips on signs of profit-taking after rallying in July