Tesco has launched a trial offering customers tailored discounts based on their shopping habits, the supermarket giant has said.