Influence of proximity on the weak localization effect in graphene heterostructures