US jobless claims rise marginally; layoffs increase in July