Carlsberg is to sponsor the Euro 2012 football tournament after signing a deal with European football's governing body, UEFA.