San Marino votes to legalise abortion in historic referendum, official results show