Matrix factorisations and open topological string theory