An attempted Turkish military coup appeared to crumble in the early hours of Saturday after crowds answered President Tayyip Erdogan's call to take to the streets to support him.