Almost 500 people arrested after last year's failed coup in Turkey are to go on trial accused of taking part in the plot.