A man in his 20s required hospital treatment after being assaulted in a city centre pub, police say.