Wales flanker Sam Warburton has been confirmed as the captain of the British and Irish Lions squad to tour Australia.