Courts are back in session in Pakistan's Swat Valley after a three-month hiatus because of an army offensive against Taliban militants.