Quantum phase transitions in optical lattices beyond the Bogoliubov approximation