Shoppers continued to keep a tight grip on spending amid uncertainty about Brexit and the election.