Search for new physics in same-sign dilepton events in proton-proton collisions at sqrt(s) = 13 TeV