17-year-old girl narrowly avoids detention term after ‘thuggish, violent’ robbery on Geraldton foreshore