Red Bull has taken a stake in mobile video camera maker GoPro as part of a marketing tie-up.