US stocks declined sharply on Friday as bond yields rose to an eight-month high, with the tech sector providing a big drag.