Clerics, Druids, Rangers and Paladins can research and create brand new spells in the same way that Wizards can. (PHB p. 180)
I thought this was general knowledge, but I saw a thread somewhere of people discussing the idea as an optional rule, rather than an actual PHB listed ability.