A supermarket banned a customer from taking a folding bicycle into store for health and safety reasons.