Resolution studies of cosmic-ray tracks in a TPC with GEM readout