LONDON — Police officers and counterterrorism officials in Britain were investigating attacks on five mosques Thursday, including one in which a man took a sledgehammer to smash the windows of a house of worship in Birmingham, England.