Former City of Edinburgh Council leader Cammy Day was accused of sending unsolicited sexual messages in a complaint made to Scottish Labour almost two years ago, it has emerged.