Barcelona have confirmed that Ronaldinho is returning to the club to take up a role as a club ambassador.