Functional Partial Least-Squares: Optimal Rates and Adaptation