Several local beaches closed due to lightning threat