Pinning effects in a two-dimensional cluster glass