Search for anomalous production of prompt like-sign muon pairs and constraints on physics beyond the standard model with the ATLAS detector