Saudi Arabia has admitted that it bombed a funeral in the Yemeni capital that killed more than 140 people last week after initially denying it.