Alibaba reported better than expected top line results, driven by strong sales in its commerce and cloud computing units, even as margins were squeezed by investments