Formation of methyl formate after cosmic ion irradiation of icy grain mantles