Scientists have discovered a new use for coffee grounds that could transform the construction industry.