Heavy flavour measurements in the ALICE experiment at the LHC