Analog Devices reported an increase in third-quarter profit, driven by higher revenue and margins, with results topping Wall Street estimates.