UK retail footfall lost its momentum in May, falling year-on-year as poor weather at the beginning of the month kept people indoors.