Error estimates for abstract linear-quadratic optimal control problems using proper orthogonal decomposition