Bosonic sector of the two-dimensional Hubbard model studied within a two-pole approximation