They're all pretty similar in terms of academics. I don't know Leeds well so will refrain from commenting on there. Between the other two, it depends on what you want. Liverpool has more big city life if you're into that sort of thing. I personally love Cardiff. It has a good balance between city and homeliness. The student accommodation isn't amazing but isn't awful either. I found Cardiff to feel really safe, chilled and friendly!