Dr Mark Williams has explained exactly when you should switch off your phone if you want to get a good night's sleep