The safety of police officers and their families is being put at risk by football fans who post “very dangerous” pictures of them on duty at matches online.