Bitcoin rises to $30,682 as altcoins register hefty gains