Thousands lined the streets as the Olympic torch passed through Barnsley.