Rahul Gandhi visits temple, dargah in Karnataka