Borussia Dortmund captain Mats Hummels to join rivals Bayern Munich