A mixture model for the classification of three-way proximity data