Real-time Automated Photometric IDentification (RAPID) of astronomical transients using deep learning