Thousands attend funeral of Sudan’s last democratically elected PM