Ethan Hawke has insisted Robin Williams' mental health struggles were "obvious" on the set of Dead Poets Society.