Copy cluster allocation algorithm to PHP from Python
A users cluster_id is determined by what tags they have selected.
The python implementation (https://gitlab.com/minds/data-science/minds-etl/-/blob/master/prefect/update-recommendations-flow.py#L59) can be translated over to PHP. This avoids needing an additional database query to determine the cluster id.