Heavy flavours in ALICE