Energetic nuclear transients in luminous and ultraluminous infrared galaxies