Madrid's city hall has apologised after distributing videos featuring a white actor wearing blackface as part of wildly popular Epiphany festivities.