Mahiedine Mekhissi took victory in the men's 3000m steeplechase at the European Athletics Championships.