The effects of interactions on spiral galaxies. I - Nuclear activity and star formation