Deutsche Bank flags credit risks as returns to profit in third quarter