BAFTA has apologised "unreservedly" over an incident which saw a racial slur broadcast during the film awards.