Britain's economy slowed sharply in the first three months of 2017 as higher inflation, boosted by last year's Brexit vote, hurt retailers and other consumer-focused businesses.