Data-driven approach to iterative learning control via convex optimisation