A Medford man has been arraigned in court after he was allegedly caught trying to steal cash and a smartphone from a Malden rink where Medford police officers and firefighters were playing hockey.