Similarity transformations and exact solutions for a family of higher-dimensional generalized Boussinesq equations