At least five teenagers are injured by people wielding machetes and other weapons at a party attended by hundreds in Perth.