Irregular sleep patterns increase the risk of conditions such as stroke, heart failure and heart attacks, a recent study has found.