A government minister has paid a visit to a Wiltshire town centre battered by flooding.