A man in his 20s was rushed to hospital after suffering head injuries following an assault in Bradford.