Police said analysis of his mobile phone showed he was ordering cocaine and viagra on the night