Star-planet magnetic interaction and activity in late-type stars with close-in planets