Groups in which 2-generator subgroups are nilpotent of bounded class