Turkish forces thwart coup against Erdogan after crowds rally