Magnetic activity in the young solar analog LQ hydrae. I. Active longitudes and cycles