Adobe has reported better-than-expected profit and sales in its latest quarter.