On a weighted core inverse in a ring with involution