A bid to build more than 200 student housing units in Edinburgh have been rejected despite receiving dozens of letters of support.