ALICE results on quarkonium production in pp, p-Pb and Pb-Pb collisions