Cowboys sign quarterback Brandon Weeden