An Oxford University postgraduate student from the USA took his own life after suffering from depression, an inquest has heard.