Western Australia Police have charged a 16-year-old after he allegedly attacked an officer outside Optus Stadium in Perth.