Funerals have been held for 42 people killed when gunmen fired on a bus carrying Shia pilgrims in Pakistan’s Kurram.