Formation of methyl formate and other organic species in the warm-up phase of hot molecular cores