Solution of the Three--Anyon Problem