Uganda's main opposition leader, Kizza Besigye, was arrested and charged during his first public outing since police lifted a six-week-long house arrest.