UK ice cream group R&R Ice Cream has agreed to acquire local rival Fredericks Dairies in a deal worth GBP49m.