NHS bosses have apologised after the wrong body was cremated following a mix-up at a hospital mortuary in Glasgow.