John Swinneywas informed about a spying incident against one of his female MSPs months ago despite claims he had no knowledge of the scandal.